region_01 = ['上海']
region_02 = ['江苏', '浙江']
region_03 = ['北京', '天津', '河北', '河南', '安徽', '陕西', '湖南', '湖北', '江西', '福建', '广东', '山西']
region_04 = ['吉林', '甘肃', '四川', '内蒙古', '重庆', '青海', '广西', '云南', '海南', '黑龙江', '贵州', '辽宁']
region_05 = ['新疆', '西藏']


def work2(region,weight):
    if region in region_01:
        if weight <= 1:
            fee = 10
            return fee
        else:
            weight=weight-1
            fee = 10 + weight * 3
            return fee
    elif region in region_02:
        if weight <= 1:
            fee = 10
            return fee
        else:
            weight=weight-1
            fee = 10 + weight * 4
            return fee
    elif region in region_03:
        if weight <= 1:
            fee = 15
            return fee
        else:
            weight=weight-1
            fee = 15 + weight * 5
            return fee
    elif region in region_04:
        if weight <= 1:
            fee = 15
            return fee
        else:
            weight=weight-1
            fee = 15 + weight * 6.5
            return fee
    elif region in region_05:
        if weight <= 1:
            fee = 15
            return fee
        else:
            weight=weight-1
            fee = 15 + weight * 10
            return fee


